package com.mingqijia.gassafety.webserver.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mingqijia.gassafety.webserver.response.runningReport.RunningReportAuditConfigListResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author mby
 * @version 1.0.0
 * @ClassName RunningReportConfigResponse.java
 * @Description
 * @createTime 2024年03月11日
 */

@Data
@ApiModel("设备运行报告生成配置数据")
public class RunningReportConfigResponse {

    @ApiModelProperty(value = "设备运行报告生成开关 ON-开 OFF-关")
    private String generateReportOpen;

    @ApiModelProperty(value = "设备运行报告生成日期，每月第几天")
    private Integer generateReportDay;

    @ApiModelProperty(value = "用户审核开关,  {'民用':'ON','商用':'ON'}")
    private Map<String, String> checkOpenShow;

    @ApiModelProperty(value = "无需审核配置列表")
    private List<RunningReportAuditConfigListResponse> noAuditList;

    @ApiModelProperty(value = "是否开启配置类型离线时间 0-是，1-否")
    private Integer isOfflineConfig;

    @ApiModelProperty(value = "设备上报离线至上报上线间隔")
    private Integer offlineInterval;

    @ApiModelProperty(value = "离线业务配置是否需要计入离线事件统计 0-不计入统计 1-计入统计")
    private Integer offlineInclude;

    @ApiModelProperty(value = "配置更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date configUpdatedAt;

    @ApiModelProperty(value = "模板更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date templateUpdatedAt;


}
